<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\datecontrol\DateControl;

/* @var $this yii\web\View */
/* @var $model app\models\JiaogaiKeti */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="jiaogai-keti-form">
    <div class="panel panel-default">
        <div class="panel-body">
            <?php
            $form = ActiveForm::begin([
                        'options' => ['class' => 'form-horizontal form-group'],
                        'fieldConfig' => [
                            'template' => "{label}<div class=\"col-lg-8\">{input}</div>",
                            'labelOptions' => ['class' => 'col-lg-4', 'style' => 'margin-right:-30px'],
                        ]
            ]);
            ?>

            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'xibie')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'sex')->dropDownList(['男' => '男', '女' => '女'], ['prompt' => '请选择性别']); ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
               <?=
                $form->field($model, 'birthday')->widget(DateControl::className(), [
                    'type' => DateControl::FORMAT_DATE,
                    'ajaxConversion' => false,
                    'options' => [
                        'pluginOptions' => [
                            'autoclose' => true,
                            //当前日期高亮显示
                            'todayHighlight' => true
                        ],
                    ]
                        ]
                )
                ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4" >
                <?= $form->field($model, 'xueli')->dropDownList(['博士研究生' => '博士研究生','硕士研究生' => '硕士研究生','本科' => '本科','专科' => '专科'],['prompt'=>'请选择学历']); ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4" >
                 <?= $form->field($model, 'xuewei')->dropDownList(['博士' => '博士','硕士' => '硕士','学士' => '学士'],['prompt'=>'请选择学位']); ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4" >
                <?=
                $form->field($model, 'biye')->widget(DateControl::className(), [
                    'type' => DateControl::FORMAT_DATE,
                    'ajaxConversion' => false,
                    'options' => [
                        'pluginOptions' => [
                            'autoclose' => true,
                            //当前日期高亮显示
                            'todayHighlight' => true
                        ],
                    ]
                        ]
                )
                ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'zhuanye')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'zhicheng')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4" >
                <?=
                $form->field($model, 'zhicheng_time')->widget(DateControl::className(), [
                    'type' => DateControl::FORMAT_DATE,
                    'ajaxConversion' => false,
                    'options' => [
                        'pluginOptions' => [
                            'autoclose' => true,
                            //当前日期高亮显示
                            'todayHighlight' => true
                        ],
                    ]
                        ]
                )
                ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'zhengshu')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4" >
                <?=
                $form->field($model, 'zhengshu_time')->widget(DateControl::className(), [
                    'type' => DateControl::FORMAT_DATE,
                    'ajaxConversion' => false,
                    'options' => [
                        'pluginOptions' => [
                            'autoclose' => true,
                            //当前日期高亮显示
                            'todayHighlight' => true
                        ],
                    ]
                        ]
                )
                ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'jiaogaiketi_name')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'xiangmu_bianhao')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'fuzeren')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'chengyuan')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'jingfei')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?=
                $form->field($model, 'lixiang_time')->widget(DateControl::className(), [
                    'type' => DateControl::FORMAT_DATE,
                    'ajaxConversion' => false,
                    'options' => [
                        'pluginOptions' => [
                            'autoclose' => true,
                            //当前日期高亮显示
                            'todayHighlight' => true
                        ],
                    ]
                        ]
                )
                ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'jibie')->dropDownList(['国家' => '国家', '省部' => '省部', '厅级' => '厅级', '其他' => '其他'], ['prompt' => '请选择奖项级别']) ?>
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                 <?=
                $form->field($model, 'jiexiang_time')->widget(DateControl::className(), [
                    'type' => DateControl::FORMAT_DATE,
                    'ajaxConversion' => false,
                    'options' => [
                        'pluginOptions' => [
                            'autoclose' => true,
                            //当前日期高亮显示
                            'todayHighlight' => true
                        ],
                    ]
                        ]
                )
                ?>
                
            </div>
            <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                <?= $form->field($model, 'beizhu')->textInput(['maxlength' => true]) ?>
            </div>
            <div class="col-lg-12 col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <?= Html::submitButton('保存', ['class' => 'btn btn-success col-lg-offset-5 col-md-offset-5']) ?>
                    <?= Html::a('返回', ['index'], ['class' => 'btn btn-primary']) ?>
                </div>
            </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>

</div>
